import Vue from "vue";
import Router from "vue-router";
import Writer from "../components/Writer.vue";
import ShowWriters from "../components/ShowWriters.vue";
import AllName from "../components/AllName.vue";
import Swiper from "../components/Swiper.vue";
import OutOfOrderWall from "../components/OutOfOrderWall.vue";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/showwriters"
    },
    {
      path: "/showwriters",
      component: ShowWriters,
      children: [
        {
          path: "/",
          redirect: "/allname"
        },
        {
          path: "/allname",
          name: "AllName",
          component: AllName
        },
        {
          path: "/swiper",
          name: "Swiper",
          component: Swiper
        },
        {
          path: "/outoforderwall",
          name: "OutOfOrderWall",
          component: OutOfOrderWall
        }
      ]
    },
    {
      path: "/writer",
      name: "Writer",
      component: Writer
    }
  ]
});
